<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>
			蘑菇街-地址管理
		</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<meta name="renderer" content="">
		<meta name="copyright" content="">
		<meta name="robots" content="">
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/pkg-navigation.css" >
		<!-- <link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/module-captcha.css" > -->
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/page-muorder-common.css" >
		<script type="text/javascript" src="{{__PUBLIC__}}/jquery-1.8.js"></script>
		<link rel="stylesheet" href="{{__PUBLIC__}}/hdjs/hdjs.css" />
		<script type="text/javascript" src="{{__PUBLIC__}}/hdjs/hdjs.min.js"></script>
		
		<!--右侧导航栏-开始-->
	</head>
	<!--载入公共模板 头部-->
	{{include file="VIEW_PATH/Common/header.php"}}
	<div id="body_wrap">
		<div id="body" class="fm960">
			<div class="mu_wrap clearfix">
				<div class="mu_nav_wrap">
					<!-- 导航 -->
					<link rel="stylesheet" href="{{__PUBLIC__}}/Home/css/level.css">
					<!--左侧个人信息-->
					{{foreach from="$userData" value="$u"}}
					<div class="mu_nav_info">
						<!--用户头像-->
						<div class="mu_nav_info_avatar">
							<div class="mu_nav_info_avatar_mk">
							</div>
							<img src="{{__ROOT__}}/{{$u['avatar']}}" alt=""  height="100" width="100">
						</div>
						<!--用户名称-->
						<p class="mu_nav_info_uname">
							{{$u['nickname']}}
						</p>
						<a target="_blank" style="width:45px;" class="mu_nav_info_ulot" href="">
							<span id="vip_level" class="vip_level0" style="float:left;width: 45px; display: inline-block; height: 14px; margin-top: 3px;">
							</span>
						</a>
					</div>
					{{endforeach}}
					<!--个人信息结束-->
					<!--左侧导航-开始-->
					<dl class="mu_nav">
						<dt>
							我的订单
						</dt>
						<dd>
							<a href="{{U('Member/index')}}">
								全部订单
							</a>
						</dd>
						
						
					</dl>
					<!--我订单结束-->
					<!--我的钱包-->
					<dl class="mu_nav">
						<dt>
							<a href="{{U('Member/wallet')}}">
								我的钱包
							</a>
						</dt>
					</dl>
					<!--地址管理-->
					<dl class="mu_nav">
						<dt>
							<a href="{{U('Member/address')}}">
								地址管理
							</a>
						</dt>
					</dl>
				
					<!--个人账号管理-->
					<dl class="mu_nav pb40">
						<dt>
							帐号设置
						</dt>
						<dd>
							<a href="{{U('Member/accountSettings')}}">
								基本信息
							</a>
						</dd>
						<dd>
							<a href="{{U('Member/change')}}">
								修改密码
							</a>
						</dd>
					</dl>
					<!--导航结束-->
				</div>
				<!---------------城市联动---------------------->
<script class="resources library" src="{{__PUBLIC__}}/Home/js/area.js" type="text/javascript"></script>
 <script type="text/javascript">
			var Gid  = document.getElementById ;
			var showArea = function(){
				Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" + 	
				Gid('s_city').value + " - 县/区" + 
				Gid('s_county').value + "</h3>"
				}
		Gid('s_county').setAttribute('onchange','showArea()');
</script>
				<!-------------------->
				<div class="mu_content_wrap">
					<div class="addr_right topay" >
						<h2 class="addr_title">
							地址管理
						</h2>
						<div class="addr_edit" id="J_s_addr_edit">
							<div class="">
								<span id="J_saddAddress">+添加地址</span>
							</div>
<!--表单-->
							<form action="" method="post">
								<div class="addressbox_warp">
									<div class="__addressPop">
										<dl class="address_pop">
											<dt>
												省：
											</dt>
											<dd class="pt_ie6hack hd-table hd-table-form hd-form">
												<i class="needicon">*</i>
												<select id="s_province" name="s_province"  >
												</select>  
												</select>
												<label class="dt" for="">市：</label>
												<select id="s_city" name="s_city" >
												</select>  
												</select>
												<label class="dt" for="">区：</label>
												<select id="s_county" name="s_county">
												</select>
												</select>
												<!--====================-->
												<script type="text/javascript">_init_area();</script>
	                   							<div id="show"></div>
												<!--============================-->
												<span class="prompt">
												</span>
											</dd>
											<dt>
												邮政编码：
											</dt>
											<dd>
												<i class="needicon">*</i>
												<input class="text formsize_normal J_postcode J_form vm" name="postcode" type="text">
												<span class="prompt">
												</span>
											</dd>
											<dt>
												街道地址：
											</dt>
											<dd>
												<i class="needicon">*</i>
												<textarea  class="textarea formsize_large" name="address" cols="30" rows="3" placeholder="请填写街道地址，最少5个字，最多不能超过100个字"></textarea>												
           
											</dd>
											<dt>
												收货人姓名：
											</dt>
											<dd>
												<i class="needicon">*</i>
												<input  class="text " name="username" type="text">
												<span class="prompt">
												</span>
											</dd>
											<dt>
												手机：
											</dt>
											<dd>
												<i class="needicon">*</i>
												<input data-type="phone"  class="text" name="phone" type="text">
												<span class="prompt">
												</span>
											</dd>
											<dt>
											</dt>
											<dd class="">
												<input type="submit" class="hd-btn hd-btn-primary hd-btn-xm" value="提交"></input>
											</dd>
										</dl>
									</div>
								</div>
							</form>
							<!--如果有地址就显示地址-->
							
							<div style="display:;" class="addr_section default" >
							{{foreach from="$addressData" value="$v"}}
								<ul class="clearfix">
									<li class="name">{{$v['username']}}</li>
									<li class="addr">{{$v['address']}}</li>
									<li class="zcode">{{$v['postcode']}}</li>
									<li class="mobile">{{$v['phone']}}</li>
									<li class="oper">
										<a href="javascript:;" class="J_default">默认地址</a>
										<a href="" class="edit">编辑</a>
										<a href="javascript:;" class="del" onclick="if(confirm('确定删除吗？？'))location.href='{{U('Member/delAddress',array('uaid'=>$v['uaid']))}}'">删除</a>
									</li>
									<li class="enaddr">
									</li>
								</ul>
								{{endforeach}}
							</div>
								<!-- ============= -->
							
							<!-- ============== -->
							
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!--底部-->
	<!-- 载入公共底部 -->
	{{include file="VIEW_PATH/Common/footer.php"}}
	</body>
</html>